#ifndef CMESSAGE_H
#define CMESSAGE_H

#include <QDateTime>
#include <QObject>

class CMessageData
{
public:
    QString networkId;

    QString from;
    QString to;

    QDateTime time;
    QString text;
};

class CMessage : public QObject
{
    Q_OBJECT
public:
    CMessage(const CMessage &other);
    explicit CMessage(const QString &networkId, QObject *parent = 0);

    QString networkId() const;
    void setNetworkId(const QString &networkId);

    QString from() const;
    void setFrom(const QString &from);

    QString to() const;
    void setTo(const QString &to);

    QDateTime time() const;
    void setTime(const QDateTime &time);

    QString text() const;
    void setText(const QString &text);

signals:

public slots:

private:
    CMessageData d;
};

#endif // CMESSAGE_H
